/**
 * MIT License
 * 
 * Copyright (c) 2024 - present @ ebraid
 * 
 * Email: 1477153217@qq.com
 * QQ: 1477153217
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#ifndef __EB_IOMODE_H__
#define __EB_IOMODE_H__


#define    IO_MODE_SPI_CLK	    0x02
#define    IO_MODE_SPI_MOSI		0x02
#define    IO_MODE_SPI_MISO		0x02
#define    IO_MODE_SPI_CS		0x01


#define    IO_MODE_UART_TX		0x02
#define    IO_MODE_UART_RX		0x02


#define    IO_MODE_I2C_SDA		10
#define    IO_MODE_I2C_SCL		10


#define    IO_MODE_PWM			4


#define    IO_DRV_NORMAL        0
#define    IO_DRV_LOW           1
#define    IO_DRV_MIDDLE        2
#define    IO_DRV_HIGH          3


#define    IO_SPEED_NORMAL      0
#define    IO_SPEED_LOW         1
#define    IO_SPEED_MIDDLE      2
#define    IO_SPEED_HIGH        3


#endif // __EB_IOMODE_H__
